using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using MoveIt.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MoveIt.Object.Lines
{
    public enum EDirection
    {
        TOP,
        LEFT,
        RIGHT,
        BOTTOM,
    }

    public class HardLine : CAnimationObject
    {
        public HardLine(Vector2 _Position, IDResource _IDResource)
            : base(_Position)
        {
            this.m_IDObject = IDObject.HARDLINE;
            //this.m_StatusLine = _StatusLine;
            //if (this.m_StatusLine == StatusLine.First || this.m_StatusLine == StatusLine.Last)
            //{
            //    this.m_Sprite = new CSprite(CResourceManager.GetInstance().GetResource(IDResource.HARDLINE1));
            //}
            //else
            //{
            //    this.m_Sprite = new CSprite(CResourceManager.GetInstance().GetResource(IDResource.HARDLINE2));
            //}
            Sprite = new CSprite(CResourceManager.GetInstance().GetResource(_IDResource));
            Sprite.Origin = new Vector2(Sprite.FrameWidht / 2, Sprite.FrameHeight / 2);
        }

        public override void UpdateAnimation(GameTime _GameTime, CInput _Input)
        {
            
            base.UpdateAnimation(_GameTime, _Input);
        }

        public override void UpdateMovement(GameTime _GameTime, CInput _Input)
        {
            m_Velocity = new Vector2(0, -0.2f);
            base.UpdateMovement(_GameTime, _Input);
            base.Update(_GameTime, _Input);
        }

        public override void UpdateCollision(CAnimationObject _Object)
        {
            base.UpdateCollision(_Object);
        }

        public override void Draw(SpriteBatch _SpriteBatch)
        {
            base.Draw(_SpriteBatch);
        }        
    }
}
